//
//  YSOrderDeliveryHeaderView.m
//  Yueshi
//
//  Created by Northwan on 15/8/5.
//  Copyright (c) 2015年 悦食中国. All rights reserved.
//

#import "YSOrderDeliveryHeaderView.h"

@interface YSOrderDeliveryHeaderView()

@property (weak, nonatomic) IBOutlet UILabel *deliveryNumLabel;
@property (weak, nonatomic) IBOutlet UILabel *deliveryFromLabel;

@end
@implementation YSOrderDeliveryHeaderView

+(instancetype)headerView{
    return [[[NSBundle mainBundle]loadNibNamed:@"YSOrderDeliveryHeaderView" owner:nil options:nil]lastObject];
}
-(void)setDelivery:(OrderDelivery *)delivery{
    _delivery = delivery;
    [self.deliveryNumLabel setText:delivery.nu];
    [self.deliveryFromLabel setText:delivery.com];
}

@end
